import request from '@/utils/request'

// 查询门类树列表
export function listGROUPTree(query) {
  return request({
    url: '/archive/category/getcatemodeltree',
    method: 'get',
    params: query
  })
}

// 查询表格列表
export function getSealList(query) {
  return request({
    url: '/archive/sealmanage/list',
    method: 'get',
    params: query
  })
}

//元数据信息明细查询
export function cateMdataList(query){
  return request({
    url: '/archive/cateMdataList/list',
    method: 'get',
    params: query
  })
}

// 修改归档章
export function updateSeal(data) {
  return request({
    url: '/archive/sealmanage',
    method: 'put',
    data: data
  })
}

// 删除归档章
export function deleteSeal(id) {
  return request({
    url: '/archive/sealmanage/' + id,
    method: 'delete'
  })
}

// 新增归档章
export function addSeal(data) {
  return request({
    url: '/archive/sealmanage',
    method: 'POST',
    data: data
  })
}

// 动态值默认显示基础数据接口
export function listNoPage(query) {
  return request({
    url: '/archive/yqfields/listNoPage',
    method: 'get',
    params: query
  })
}

//归档章预览
export function viewSeal(data){
  return request({
    url:'/archive/sealmanage/viewSeal',
    method: 'POST',
    data: data
  })
}

export function deleteTempFile(){
  return request({
    url:'/archive/sealmanage/deleteTempFile',
    method: 'DELETE',
  })
}
// 根据id查询归档章信息
export function listNoPageID(ID) {
  console.log(ID)
  return request({
    url: '/archive/sealmanage/'+ID,
    method: 'get',

  })
}
